package com.example.demo.mapper;

import com.example.demo.entity.Demand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DemandMapper {

    public int updateDemand(Demand demand);

    public List<Demand> pageQueryAll(@Param("page") int page, @Param("size")int size);

    public List<Demand> pageQueryUnbegin(@Param("page") int page, @Param("size")int size);

    public List<Demand> pageQueryBegin(@Param("page") int page, @Param("size")int size);

    public List<Demand> pageQueryQuit(@Param("page") int page, @Param("size")int size);

    public List<Demand> pageQueryFinish(@Param("page") int page, @Param("size")int size);

    public List<Demand> pageQueryCrosspond(@Param("page") int page, @Param("size")int size, @Param("bgProject")String project);

    int getDemandCounts(@Param("bgProject")String bgProject, @Param("state") int state);

    List<Demand> getDemand(@Param("bgProject")String bgProject, @Param("state") int state,@Param("pageStart")int pageStart, @Param("pageSize")int pageSize);
}